package com.example.apidocserver.infrastructure.constants;

/**
 * 语雀常量
 *
 * @author xyqlg
 */
public interface DocToYuqueConstants {
    /**
     * 标题
     */
    String H1_START = "<h1 data-lake-index-type=\"2\"><span>";
    String H1_START_INPUT = "<h1 data-lake-index-type=\"2\"><span style=\"color: #5C8D07\">";
    String H1_START_OUTPUT = "<h1 data-lake-index-type=\"2\"><span style=\"color: #C99103\">";
    String H1_END = "</span></h1>";

    String H2_START = "<h2 data-lake-index-type=\"2\"><span>";
    String H2_START_INPUT = "<h2 data-lake-index-type=\"2\"><span style=\"color: #5C8D07\">";
    String H2_START_OUTPUT = "<h2 data-lake-index-type=\"2\"><span style=\"color: #C99103\">";
    String H2_END = "</span></h2>";

    String H3_START = "<h3 data-lake-index-type=\"2\"><span>";
    String H3_START_INPUT = "<h3 data-lake-index-type=\"2\"><span style=\"color: #5C8D07\">";
    String H3_START_OUTPUT = "<h3 data-lake-index-type=\"2\"><span style=\"color: #C99103\">";
    String H3_END = "</span></h3>";

    String H4_START = "<h4 data-lake-index-type=\"2\"><span>";
    String H4_START_INPUT = "<h4 data-lake-index-type=\"2\"><span style=\"color: #5C8D07\">";
    String H4_START_OUTPUT = "<h4 data-lake-index-type=\"2\"><span style=\"color: #C99103\">";
    String H4_END = "</span></h4>";

    String H5_START = "<h5 data-lake-index-type=\"2\"><span>";
    String H5_START_INPUT = "<h5 data-lake-index-type=\"2\"><span style=\"color: #5C8D07\">";
    String H5_START_OUTPUT = "<h5 data-lake-index-type=\"2\"><span style=\"color: #C99103\">";
    String H5_END = "</span></h5>";

    String H6_START = "<h6 data-lake-index-type=\"2\"><span>";
    String H6_START_INPUT = "<h6 data-lake-index-type=\"2\"><span style=\"color: #5C8D07\">";
    String H6_START_OUTPUT = "<h6 data-lake-index-type=\"2\"><span style=\"color: #C99103\">";
    String H6_END = "</span></h6>";

    String[] H_START_ARR = {"", H1_START, H2_START, H3_START, H4_START, H5_START, H6_START};
    String[] H_START_INPUT_ARR = {"", H1_START_INPUT, H2_START_INPUT, H3_START_INPUT, H4_START_INPUT, H5_START_INPUT, H6_START_INPUT};
    String[] H_START_OUTPUT_ARR = {"", H1_START_OUTPUT, H2_START_OUTPUT, H3_START_OUTPUT, H4_START_OUTPUT, H5_START_OUTPUT, H6_START_OUTPUT};
    String[] H_END = {"", H1_END, H2_END, H3_END, H4_END, H5_END, H6_END};

    /**
     * 文段
     */
    String P_STRONG_START = "<p><strong><span>";
    String P_STRONG_START_INPUT = "<p><strong><span style=\"color: #5C8D07\">";
    String P_STRONG_START_OUTPUT = "<p><strong><span style=\"color: #C99103\">";
    String P_STRONG_END = "</span></strong></p>";
    String P_START = "<p><span>";
    String P_END = "</span></p>";

    /**
     * 表格
     */
    String TABLE_START = "<table margin=\"true\" row-head=\"#FAFAFA; #262626\" fitwidth=\"true\" class=\"lake-table\" style=\"width: " +
            "750px\">\n" +
            "<colgroup><col width=\"180\"><col width=\"80\"><col width=\"80\"><col width=\"410\"></colgroup>\n" +
            "<tbody><tr><td><p><span>字段名称</span></p></td><td><p><span>字段类型</span></p></td>\n" +
            "<td><p><span>是否必须</span></p></td><td><p><span>字段说明</span></p></td></tr>";
    String TABLE_END = "</tbody></table><p><br></p>";

    String TR_START = "<tr>";
    String TR_END = "</tr>";

    String TD_START = "<td><p><span>";
    String TD_END = "</span></p></td>";

    String TD_STRONG_START = "<td><p><strong><span>";
    String TD_STRONG_END = "</span></strong></p></td>";

    /**
     * code
     */
    String CODE_START = "<card type=\"inline\" name=\"codeblock\" value=\"data:%7B%22search%22%3A%22%22%2C%22mode%22%3A%22json%22%2C%22code%22%3A%22";
    String CODE_END = "%22%2C%22autoWrap%22%3Afalse%2C%22lineNumbers%22%3Atrue%2C%22heightLimit%22%3Atrue%2C%22" +
            "collapsed%22%3Afalse%2C%22hideToolbar%22%3Afalse%2C%22name%22%3A%22%22%2C%22tabSize%22%3Anull%2C%22" +
            "indentWithTab%22%3Afalse%2C%22lightLines%22%3A%5B%5D%2C%22foldLines%22%3A%5B%5D%2C%22theme%22%3A%22" +
            "default%22%2C%22customStyle%22%3A%5B%5D%2C%22fontSize%22%3A14%2C%22__spacing%22%3A%22both%22%2C%22" +
            "id%22%3A%22uOZDn%22%2C%22margin%22%3A%7B%22top%22%3Atrue%2C%22bottom%22%3Atrue%7D%7D\"></card>";

    String COMMON = "COMMON";
    String INPUT = "INPUT";
    String OUTPUT = "OUTPUT";

    Integer H_LIMIT = 1;
}
